package com.itheima.test05;

import java.time.Duration;
import java.time.LocalTime;

//第五题.请查找API，查找Duration时间间隔对象的方法，算出6点30分00秒 和22点18分55秒之间间隔了多少秒
public class Test05 {
    public static void main(String[] args) {
        LocalTime start = LocalTime.of(6, 30, 00);
        LocalTime end = LocalTime.of(22, 18, 55);

        Duration between = Duration.between(start,end);
        long seconds = between.getSeconds();
        System.out.println("6点30分00秒 和22点18分55秒之间间隔了" + seconds + "秒");

    }
}
